<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateFamilySituationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('family_situations', function (Blueprint $table) {
            $table->increments('id');
            $table->string('full_name')->nullable()->comment('姓名');
            $table->string('relationship')->nullable()->comment('关系');
            $table->string('engage_in_work')->nullable()->comment('从事工作');
            $table->string('link_phone')->nullable()->comment('联系电话');
            $table->integer('resume_id')->nullable()->comment('简历编号');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('family_situations');
    }
}
